import vant from 'vant';
import {createApp} from 'vue'
import 'vant/lib/index.css';
import App from './App.vue'
import router from './router'
import store from "./store/index.js";
import onboard from "./plugins/onboard.js";

import translate from "i18n-jsautotranslate";



// 设置使用 v2.x 版本
translate.setUseVersion2();

// 是否显示语言切换栏
translate.selectLanguageTag.show = false;

// 监控页面动态渲染的文本进行自动翻译
translate.listener.start();






const app = createApp(App);
// Vue 3
app.config.globalProperties.$translate = translate;
app.use(store)
app.use(vant)
app.use(router)
app.use(onboard,{store})
app.use(vant.Lazyload)
app.mount('#app')

